<template>
  <div id="detail">
    <div class="detail-container">
      <div class="detail-bar">
        <div class="detail-title">明细数据</div>
        <el-button type="primary" class="btn-export">导出</el-button>
      </div>

      <div class="table">
        <el-table :data="tableData" border style="width: 100%" class="table-bgc">
          <el-table-column type="index" label="序号" width="90"> </el-table-column>
          <el-table-column prop="name" label="账号昵称"> </el-table-column>
          <el-table-column prop="address" label="注册日期"> </el-table-column>
          <el-table-column prop="address" label="订单笔数"> </el-table-column>
          <el-table-column prop="address" label="消费金额"> </el-table-column>
          <el-table-column prop="address" label="退单额"> </el-table-column>
        </el-table>
      </div>
      <Pagination></Pagination>
    </div>
  </div>
</template>

<script>
import Pagination from '../../common/Pagination.vue'
export default {
  data() {
    return {
      tableData: [
        {
          date: '01',
          name: '农家小炒肉',
          address: '上海市普陀区金沙江路 1518 弄'
        },
        {
          date: '01',
          name: '农家小炒肉',
          address: '上海市普陀区金沙江路 1517 弄'
        },
        {
          date: '01',
          name: '农家小炒肉',
          address: '上海市普陀区金沙江路 1519 弄'
        },
        {
          date: '01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }
      ]
    }
  },
  components: {
    Pagination
  }
}
</script>

<style lang="less" scoped>
.detail-container {
  background-color: #fff;
  border: 0.1rem solid #dbe0e9;
  margin-top: 2rem;
  .detail-bar {
    display: flex;
    justify-content: space-between;
    border-bottom: 0.1rem solid #dbe0e9;
    background-color: #f2f2f2;
    .detail-title {
      height: 4rem;
      background-color: #f2f2f2;
      box-sizing: border-box;
      line-height: 4rem;
      font-size: 1.4rem;
      padding-left: 3rem;
      font-weight: 500;
      color: #666666;
    }
    .btn-export {
      margin-right: 3rem;
      font-size: 1.4rem;
      line-height: 1rem;
      padding: 8px 20px;
    }
  }
}
.sort {
  background-color: #f5f6fc;
  line-height: 2rem;
  margin: 1.5rem;
  display: flex;
  justify-content: space-around;
  .dishes {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    .text {
      font-size: 1.5rem;
      color: #606266;
    }
    .num {
      margin-top: 0.5rem;
      padding: 0.2rem 3rem;
      border: 0.1rem solid #dcdfe6;
    }
  }
}
.table {
  background-color: #fff;
  padding: 1.5rem;
  .el-table--border {
    background-color: #f5f6fc;
    padding: 0.5rem;
    box-sizing: border-box;
  }
}

.detail-bar {
  align-items: center;
}

/deep/.el-table td,
/deep/.el-table th {
  text-align: center;
}
</style>
